﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Jzy.Web.CRM.Customer.Edit" %>

<%@ Register Src="TabItems.ascx" TagName="TabItems" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 80px;
            padding-right: 5px;
            text-align: right;
            height: 30px;
        }
        .style2
        {
        }
        #buttons input
        {
            width:60px; height:25px; margin-right:5px;
        }
    </style>
    
    <script type="text/javascript">
        function CheckTime(source, args) {
            args.IsValid = Jzy.Web.CRM.Customer.Edit.CheckTime(args.Value).value;
            
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" src="../../common/Js/calendar.js"></script>
    <uc1:TabItems ID="TabItems1" runat="server" TabIndex="0" />
    <asp:Panel ID="pnlMain" runat="server" Style="padding: 0px 20px 0px 20px;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin-top: 5px;">
            <tr>
                <td class="style1">
                    <span class="require">*</span><asp:Literal ID="Literal1" runat="server" Text="客户名称："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Name" runat="server" Width="260px" CssClass="txt"></asp:TextBox>
                    &nbsp;<asp:Literal ID="Literal9" runat="server" Text="级别："></asp:Literal>
                    <asp:DropDownList ID="Level" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="Name" ErrorMessage="请输入客户名称"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr>
                <td class="style1"> <span class="require">*</span>客户编号：                    
                </td>
                <td class="style2">
                    <asp:TextBox ID="Code" runat="server" CssClass="txt" Width="173px"></asp:TextBox>
                    
                    &nbsp;默认联系人：<asp:TextBox ID="ContactName" runat="server" CssClass="txt" 
                        Width="118px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="Code" ErrorMessage="请输入编号"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <span class="require">*</span><asp:Literal ID="Literal6" runat="server" Text="电话："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Telephone" runat="server" CssClass="txt" Width="173px" 
                        style="margin-right:20px;"></asp:TextBox>
                    &nbsp;<label for='<%=IsFact.ClientID %>'>事实客户</label>&nbsp;<input id="IsFact" runat="server" type="checkbox" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="Name" ErrorMessage="请输入电话"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1"><asp:Literal ID="Literal3" runat="server" Text="传真："></asp:Literal></td>
                 <td class="style2">
                     <asp:TextBox ID="Fax" runat="server" CssClass="txt" Width="173px" style="margin-right:20px;"></asp:TextBox>
                
                     &nbsp;<asp:Literal ID="Literal8" runat="server" Text="下次联系时间："></asp:Literal>
                     <asp:TextBox ID="NextContactTime" runat="server" CssClass="txt" Width="118px"></asp:TextBox>
                
                     <asp:CustomValidator ID="CustomValidator2" runat="server" 
                         ClientValidationFunction="CheckTime" ControlToValidate="NextContactTime" 
                         ErrorMessage="时间格式不正确"></asp:CustomValidator>
                
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Literal ID="Literal2" runat="server" Text="地址："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Address" runat="server" CssClass="txt" Width="260px"></asp:TextBox>
                    &nbsp;<asp:Literal ID="Literal7" runat="server" Text="邮编："></asp:Literal>
                    <asp:TextBox ID="ZipCode" runat="server" CssClass="txt" Width="79px"></asp:TextBox>
                </td>
            </tr>
           
            <tr>
                <td class="style1">
                    <asp:Literal ID="Literal4" runat="server" Text="电子邮件："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Email" runat="server" CssClass="txt" Width="400px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Literal ID="Literal5" runat="server" Text="网站地址："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Website" runat="server" CssClass="txt" Width="400px"></asp:TextBox>
                    &nbsp;</td>
            </tr>
           <tr>
                <td class="style1">
                    <asp:Literal ID="Literal11" runat="server" Text="乘车线路："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="BusLine" runat="server" CssClass="txt" Width="400px"></asp:TextBox>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Literal ID="Literal10" runat="server" Text="备注："></asp:Literal>
                </td>
                <td class="style2">
                    <asp:TextBox ID="Remark" runat="server" CssClass="txt" Height="50px" TextMode="MultiLine"
                        Width="400px"></asp:TextBox>
                </td>
            </tr>
        </table>
        <%--  <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="height: 2px;">
                    <img src="../../Common/Images/Common/keyline.gif" alt="" style="height: 2px; width: 100%" />
                </td>
            </tr>
        </table>--%>
    </asp:Panel>
    <div class="tab" style="margin-top: 10px; height:10px; line-height:10px;">
    </div>
    <div style="padding-top: 10px; text-align: left; padding-left: 100px;" id="buttons">
        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CausesValidation="False" /></div>
</asp:Content>
